package login

import (
	"fmt"
	"github.com/dchest/captcha"
	"log"
	"net/http"
)

func initCaptcha() (captchaid string) {

	captchaid = captcha.New()
	return
}

func Go() {
	//http.HandleFunc("/", showFormHandler)
	//http.HandleFunc("/process", processFormHandler)
	http.Handle("/captcha/", captcha.Server(captcha.StdWidth, captcha.StdHeight))
	fmt.Println("Server is at localhost:8666")
	if err := http.ListenAndServe("localhost:8666", nil); err != nil {
		log.Fatal(err)
	}
}
